package com.love.usedcar.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.love.common.core.annotation.Excel;
import com.love.common.core.web.domain.BaseEntity;

/**
 * 城市编码对象 city_directory
 * 
 * @author love
 * @date 2025-10-12
 */
public class CityDirectory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 上级归属 */
    @Excel(name = "上级归属")
    private String parentCode;

    /** 类型，1：省，2：市 */
    @Excel(name = "类型，1：省，2：市")
    private Long type;

    /** 城市名称 */
    @Excel(name = "城市名称")
    private String cityName;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private String cityCode;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sortNum;

    /** 城市名称拼音首字母 */
    @Excel(name = "城市名称拼音首字母")
    private String pinyinInitial;

    /** $column.columnComment */
    private String id;

    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }

    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }

    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }

    public void setPinyinInitial(String pinyinInitial) 
    {
        this.pinyinInitial = pinyinInitial;
    }

    public String getPinyinInitial() 
    {
        return pinyinInitial;
    }

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parentCode", getParentCode())
            .append("type", getType())
            .append("cityName", getCityName())
            .append("cityCode", getCityCode())
            .append("sortNum", getSortNum())
            .append("pinyinInitial", getPinyinInitial())
            .append("id", getId())
            .toString();
    }
}
